const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
      proxy: {
        '/basename': {
          target: 'http://localhost:8089/',
          changeOrigin: true,
          // rewrite: (path) => path.replace(/^\/basename/, '/basename')
        },
        '/api':{
           target:'https://w39j515696.zicp.fun',
           changeOrigin: true,
           secure:true,
           pathRewrite: {
            '^/api': '' // 重写路径
          }
        },
        '/hast': {
          target: 'http://localhost:8084/',
          changeOrigin: true,
          // rewrite: (path) => path.replace(/^\/basename/, '/basename')
        },
  }
}
})
